<?php
$this->load("header");
$this->navbar();

//foreach ($this->reslt as $key => $value) {
    ?>
           
<div class="bread_crumb" style="margin-left: 30px">
    &laquo;  <a href="manage_users?details=<?php echo $this->data;?>">Back</a>
  </div>
<!--<div class="add_div" >-->
<div style="min-width: 250px;max-width:300px;margin-top: 2.5%;margin-left: 20px;">
    <h5 style="margin-left:10px;color:blue">ADD MODULE</h5>
    <form role="form"  action=""  method="POST">
        <div class="form-group" id="add_field">
            <label for="exampleInputEmail1">Module</label>
              <select class="form-control" required="required" name="module">
                            <tbody>
<?php
foreach ($this->modules as $key => $value) {
    ?>
                <option value='<?php echo $value["module"];?>'><?php echo $value["module"];?></option>
<?php }?>
            </select>
        </div>
     
            <input type="hidden" class="form-control" id="exampleInputEmail1"  name="permission" value="<?php echo $value['p_id'];?>" readonly="readonly">
       
        <div class="form-group"  id="add_field">
            <label for="exampleInputPassword1">Add permission</label>
            <select class="form-control" required="required" name="Addd">
                    <option value='No'>No</option>
                <option value='Yes'>Yes</option>        
            </select>
        </div>
<div class="form-group"  id="add_field">
            <label for="exampleInputPassword1">Delete permission</label>
            <select class="form-control" required="required" name="Del">
                    <option value='No'>No</option>
                <option value='Yes'>Yes</option>          
            </select>
        </div>
            <div class="form-group"  id="add_field">
            <label for="exampleInputPassword1">Edit permission</label>
            <select class="form-control" required="required" name="Edit">
                    <option value='No'>No</option>
               <option value='Yes'>Yes</option>      
            </select>
        </div>

        <div style="clear: both;float:right">
            <button type="submit" class="btn btn-success">Save</button></div>
    </form>

</div>
<?php
$this->load("footer");
?>
